<?php
header('Content-type: application/xls');
header("Content-Disposition:attachment;filename=luykethang.xls");?>
<div class="zluykethoigians">
<h5><?php __('Lũy kế tuần');?></h5>
<p>
<h4>
<?php IF(!empty($zluykethoigians))echo 'Đơn vị: '.$zluykethoigians[0]['Donvi']['tendv']; ?>
</h4>
			
	
<?php
echo $paginator->counter(array(
'format' => __('Hiện có %count% hàng hóa', true)
));
?></p>
<table cellpadding="0" cellspacing="0" id="tables" border="1">
<tr>
	<th><?php echo 'STT','id';?></th>
	<th><?php echo 'Hàng hóa';?></th>
	<th><?php echo 'Chỉ tiêu';?></th>
	<th><?php echo 'Số lượng bán';?></th>
	
</tr>
<?php
$i = 0;
foreach ($zluykethoigians as $zluykethoigian):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $i;//echo $zluykethoigian['Zluykethoigian']['id']; ?>
		</td>
		
		<td>
			<?php echo $zluykethoigian['Zluykethoigian']['tenhh']; ?>
		</td>
		<td>
			<?php echo $zluykethoigian['Zluykethoigian']['soluong']; ?>
		</td>
		<td>
			<?php echo $zluykethoigian['Zluykethoigian']['ban_n']; ?>
		</td>
	
	</tr>
<?php endforeach; ?>
</table>
</div>
